package com.bangcommunity.bbframe.monitor.collector;

import java.io.Serializable;

/**
 * @author tanghc
 * @date 18/1/30
 */
public class MLogRecordBean implements Serializable {
    private static final long serialVersionUID = 8802224277521177531L;
    /** 耗时,单位纳秒 */
    private long elapsedNano;
    /** 成功次数 */
    private long success;
    /** 失败次数 */
    private long fail;
    /** 异常次数 */
    private long exception;
    /** 并发个数 */
    private long concurrent;

    public long getElapsedNano() {
        return elapsedNano;
    }

    public void setElapsedNano(long elapsedNano) {
        this.elapsedNano = elapsedNano;
    }

    public long getSuccess() {
        return success;
    }

    public void setSuccess(long success) {
        this.success = success;
    }

    public long getFail() {
        return fail;
    }

    public void setFail(long fail) {
        this.fail = fail;
    }

    public long getException() {
        return exception;
    }

    public void setException(long exception) {
        this.exception = exception;
    }

    public long getConcurrent() {
        return concurrent;
    }

    public void setConcurrent(long concurrent) {
        this.concurrent = concurrent;
    }

    public long getTotalInvoke() {
        return this.success + this.fail + this.exception;
    }
}
